Added support to Flask-style decorators with class-based Views.